<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( ! function_exists('css_url'))
{
	function css_url($nom)
	{
		return base_url() . 'assets/css/' . $nom . '.css';
	}
}

if ( ! function_exists('js_url'))
{
	function js_url($nom)
	{
		return base_url() . 'assets/javascript/' . $nom . '.js';
	}
}

if ( ! function_exists('img_commun_url'))
{
	function img_commun_url($nom)
	{
		return base_url() . 'assets/images/commun/' . $nom;
	}
}

if ( ! function_exists('img_home_url'))
{
	function img_home_url($nom)
	{
		return base_url() . 'assets/images/home/' . $nom;
	}
}

if ( ! function_exists('img_login_url'))
{
	function img_login_url($nom)
	{
		return base_url() . 'assets/images/login/' . $nom;
	}
}

if ( ! function_exists('img_album_url'))
{
	function img_album_url($nom)
	{
		return base_url() . 'assets/images/album/' . $nom;
	}
}

if ( ! function_exists('img_game_1_url'))
{
	function img_game_1_url($nom)
	{
		return base_url() . 'assets/images/game1/' . $nom;
	}
}

if ( ! function_exists('img_game_2_url'))
{
	function img_game_2_url($nom)
	{
		return base_url() . 'assets/images/game2/' . $nom;
	}
}

if ( ! function_exists('img_game_3_url'))
{
	function img_game_3_url($nom)
	{
		return base_url() . 'assets/images/game3/' . $nom;
	}
}

if ( ! function_exists('img_game_4_url'))
{
	function img_game_4_url($nom)
	{
		return base_url() . 'assets/images/game4/' . $nom;
	}
}

if ( ! function_exists('img'))
{
	function img($nom, $alt = '')
	{
		return '<img src="' . img_url($nom) . '" alt="' . $alt . '" />';
	}
}